package com.tanhua.dubbo.api;

import com.tanhua.dubbo.api.db.PersonalityTypeApi;
import com.tanhua.dubbo.api.mapper.PersonalityMapper;
import com.tanhua.model.db.PersonalityType;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description:
 * @author: Jin L
 * @date: 2021/12/27 11:43
 */
@DubboService
public class PersonalityTypeApiImpl implements PersonalityTypeApi {
    @Autowired
    private PersonalityMapper personalityMapper;

    @Override
    public PersonalityType findById(Long id) {
        return personalityMapper.selectById(id);
    }
}
